package com.stronger.pettern.decorator.decorator2;

/**
 * Decorator装饰角色（一般为抽象类
 */
public abstract class AbDecoratorAnimal implements Animal{
   private Animal animal=null;

   public AbDecoratorAnimal(Animal animal){
       this.animal=animal;
   }

   @Override
    public void sleep() {
        animal.sleep();
    }
}
